package com.JavaWk_10;

public class Account {
    private String a_Num, a_Name;
    private double a_balance;

    public Account(){}

    public Account(String nu, String na, double b){
        this.a_balance = b;
        this.a_Num = nu;
        this.a_Name = na;
    }

    public String to_String(){
        return "Num:" + this.a_Num + " Name:" + this.a_Name + " Balance:" + this.a_balance + "$";
    }

    public String getA_Num() {
        return a_Num;
    }

    public void deposit(double x){
        this.a_balance += x;
    }

    public void withdrawals(double x){
        this.a_balance -= x;
    }

    public void setA_Num(String a_Num) {
        this.a_Num = a_Num;
    }

    public String getA_Name() {
        return a_Name;
    }

    public void setA_Name(String a_Name) {
        this.a_Name = a_Name;
    }

    public double getA_balance() {
        return a_balance;
    }

    public void setA_balance(double a_balance) {
        this.a_balance = a_balance;
    }
}
